import 'package:finance_app/src/entities/content_data_import_entity.dart';
import 'package:finance_app/src/entities/data_import_entity.dart';

invoiceContentDataImportEntityFromJson(ContentDataImportEntity data, Map<String, dynamic> json) {
  if (json['dataMapped'] != null) {
    data.dataMapped = (json['dataMapped'] as List).map((v) => DataImportEntity().fromJson(v)).toList();
  }
  if (json['typesCount'] != null) {
    data.typesCount = json['typesCount'] != null ? TypesCount.fromJson(json['typesCount']) : 0;
  }
  return data;
}
